package com.example.oauthserver.demo.controller;

import java.util.Date;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName:IndexController
 *
 * @Author: Jameson Yang
 * @Description:
 * @Date: created in 14:06 08/22/19
 */
@Slf4j
@RestController
@RequestMapping("/index")
public class IndexController {

    @GetMapping("/heartbeat")
    public String heatbeat() {
        log.debug("=======================heartbeat.....datetime:{}=================", new Date().getTime());
        return "My heart will go on";
    }

}
